﻿using Furion.CMS.Domain;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Furion.CMS.Application
{
    /// <summary>
    /// 登录处理程序
    /// </summary>
    public interface ILoginHandler
    {
        /// <summary>
        /// 验证
        /// </summary>
        /// <param name="fields">提交字段集</param>
        /// <param name="loginRecord">登录记录</param>
        /// <param name="settings">配置项</param>
        /// <returns></returns>
        Task<UserPassport> VerifyAsync(Dictionary<string, object> fields, UserLoginRecord loginRecord, SiteSetting settings);
    }
}
